package com.itheima.entity;

public class Animal {
public String name;
public int quantity;
public Animal(String name,int quantity)
{
    this.name=name;
    this.quantity=quantity;
}
public void statement()
{
    System.out.print(this.quantity+"只"+this.name);
}

}
